package com.cqq.print.business.dao.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.print.business.dao.domain.PTitle;
import com.cqq.print.business.dao.mapper.PTitleMapper;


/**
 * @author CHENQQ
 * @date 2015-07-01
 */


@Repository(value="pTitleDao")
public class PTitleDaoImpl extends com.cqq.common.core.base.BaseDao implements com.cqq.print.business.dao.PTitleDao{

             @Autowired
             private PTitleMapper pTitleMapper;

			
			public int deleteByPrimaryKey(Integer id) {
				return pTitleMapper.deleteByPrimaryKey(id);
			}

			
			public int insertSelective(PTitle record) {
				pTitleMapper.insertSelective(record);
				return record.getId();
			}

			
			public PTitle selectByPrimaryKey(Integer id) {
				return pTitleMapper.selectByPrimaryKey(id);
			}

			
			public int updateByPrimaryKeySelective(PTitle record) {
				return pTitleMapper.updateByPrimaryKeySelective(record);
			}


}